package com.myproject.myblogserver.service;

import com.myproject.myblogserver.dto.blog.BlogPreviewDto;
import com.myproject.myblogserver.dto.blog.BlogUploadDto;
import com.myproject.myblogserver.entity.Blog;

import java.util.List;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 博客表 服务类
 * </p>
 *
 * @author jiangweike
 * @since 2025-01-12
 */
public interface IBlogService extends IService<Blog> {
    Blog saveBlog(BlogUploadDto blogUploadDto, Long userId);

    Page<BlogPreviewDto> searchBlogs(List<String> keyword, Page<BlogPreviewDto> page);
}
